package com.aifund.common.dao;

import com.aifund.common.entity.AiUserBindExchange;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserBindExchangeDao extends JpaRepository<AiUserBindExchange,Long> {

    List<AiUserBindExchange> getAllByAiUserIdAndAiExchangeId(Long userId, Long exchangeId);

    AiUserBindExchange getByApiKeyAndAiExchangeId(String apiKey,Long exchangeId);

}
